package com.example.event_resource_java.authority;

import com.example.event_resource_java.commons.domain.UserDO;
import com.example.event_resource_java.commons.model.LoginBody;
import com.example.event_resource_java.commons.util.ApiResult;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;

/**
 * @ClassName UserOpenfeign
 * @Description:
 * @Author: ak
 * @CreateDate: 2024/5/13 10:16
 * @UpdateUser:
 * @UpdateDate: 2024/5/13 10:16
 * @UpdateRemark:
 * @Version: 1.0
 */
@Component
@FeignClient(name = "userService", path = "/")
//@FeignClient(name = "jinZhiProduct", path = "/")
public interface UserOpenfeign {

    // xzy
    @PostMapping("/userService/jinZhiIndex/userServer/loginNurece")
    ApiResult<?> login(@RequestBody LoginBody loginBody);

    // 小程序登录接口 成功的
    @GetMapping("/userService/jinZhiIndex/jinZhiProduct/gettestxzy")
    ApiResult<?> login12();

    // 小程序登录接口
    @GetMapping("/jinZhiIndex/userServer/gettestxzy")
    ApiResult<?> login1();

}
